Version

PropertyChangeUndoUnit<TTarget,TProperty> Constructor

Syntax
'Declaration
 
Public Function New( _
   ByVal target As TTarget, _
   ByVal oldValue As TProperty, _
   ByVal newValue As TProperty, _
   ByVal setter As Action(Of TTarget,TProperty), _
   ByVal memberName As String, _
   ByVal propertyDisplayName As String, _
   ByVal targetDisplayName As String _
)
public PropertyChangeUndoUnit<TTarget,TProperty>( 
   TTarget target,
   TProperty oldValue,
   TProperty newValue,
   Action<TTarget,TProperty> setter,
   string memberName,
   string propertyDisplayName,
   string targetDisplayName
)

Parameters

target
Object whose property was changed
oldValue
The old value of the property that is to be restored when an undo is performed.
newValue
The new value of the property.
setter
The delegate used to perform the undo
memberName
The name of the associated property
propertyDisplayName
The name of the property as it should be displayed to the end user or null to use the memberName.
targetDisplayName
A string representing the target as it should be displayed to the end user or null to obtain the string representation from the target itself.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also